package com.skynet.backend.auth.sys.dao;

import com.skynet.backend.auth.sys.entity.SysRoleEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper()
public interface SysRoleDao extends BaseDao<SysRoleEntity>{

    /**
     * 查询用户的角色列表
     * @param userId 用户ID
     */
    List<SysRoleEntity> queryRoleListByUserId(Long userId);

}
